Match rename of parameters to match the corresponding hotplug events. This
authoremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 25 Nov 2005 17:07:19 +0000 (17:07 +0000)
committeremellor@leeni.uk.xensource.com <emellor@leeni.uk.xensource.com>
Fri, 25 Nov 2005 17:07:19 +0000 (17:07 +0000)
took place some time ago, so presumably not many people are using this scripts!

Signed-off-by: Ewan Mellor <ewan@xensource.com>
tools/examples/block-enbd
tools/examples/block-nbd

index c58adb595d5174ef9bcc7740d7f32dc8fec7cad9..75c6f257aa640a6ae6b39ebbf759690143364912 100755 (executable)
@@ -11,7 +11,7 @@ dir=$(dirname "$0")
 . "$dir/block-common.sh"
 
 case "$command" in
-  bind)
+  add)
     for dev in /dev/nd*; do
       if nbd-client $2:$3 $dev; then
         write_dev $dev
@@ -20,7 +20,7 @@ case "$command" in
     done
     exit 1
     ;;
-  unbind)
+  remove)
     nbd-client -d $2
     exit 0
     ;;
index 142a403c0f97e60a621d80cd1a02bd070b90b786..8c5cb17b7970e767ae77613033237f48e214fef2 100644 (file)
@@ -11,7 +11,7 @@ dir=$(dirname "$0")
 . "$dir/block-common.sh"
 
 case "$command" in
-  bind)
+  add)
     for dev in /dev/nbd*; do
       if nbd-client $2 $3 $dev; then
         write_dev $dev
@@ -20,7 +20,7 @@ case "$command" in
     done
     exit 1
     ;;
-  unbind)
+  remove)
     nbd-client -d $2
     exit 0
     ;;